<template>
  <section class="lefttask-box">
    <h3 class="lefttask-title">
      任务概览
      <img class="icon" src="../../../../../assets/leftbg10.png" alt="" />
    </h3>
    <div class="lefttask-num-box">
      <div v-for="(item, index) in taskoverList" :key="index" class="lefttask-num">
        <div class="lefttask-text">
          <div class="corner-lb"></div>
          <div class="corner-rb"></div>
          <div>
            <img class="lefttask-icon" :src="item.url" alt="" />
          </div>
          <div class="lefttask-con">
            <p class="lefttask-con-tit">{{ item.number }}</p>
            <p>{{ item.title }}</p>
          </div>
        </div>
      </div>
    </div>
  </section>
</template>
<script lang="ts" setup>
import { ElRow, ElCol } from "element-plus";
import { ref, onMounted, onBeforeUnmount, defineProps } from "vue";
const props = defineProps({ taskoverList: Array });
</script>

<style lang="scss" scoped>
.lefttask-box {
  background: rgb(2 19 20 / 52%);
  border: 1px solid;
  border-image: radial-gradient(circle,
      rgb(36 229 241 / 17%),
      rgb(255 255 255 / 17%)) 1 1;
  height: 15vh;
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0px;
    width: 22px;
    height: 22px;
    border-top: 1px solid #24e5f1;
    opacity: 0.4;
  }

  &::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 22px;
    height: 22px;
    border-top: 1px solid #24e5f1;
    opacity: 0.4;
  }

  .lefttask-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4vh;
    padding-left: 1.5vh;
    margin: 0;
    font-family: PingFangSC, "PingFang SC";
    font-size: 2vh;
    font-weight: 500;
    color: #fffefe;
    user-select: none;
    background: radial-gradient(ellipse 140% 300% at 100% 50%,
        rgba(1, 34, 35, 0.2) 28%,
        rgba(7, 217, 221, 0.7) 100%);

    .icon {
      width: 3vh;
      margin-right: 1vw;
    }
  }

  .lefttask-num-box {
    width: 100%;
    height: calc(100% - 4vh);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1vw;

    .lefttask-num {
      height: calc(100% - 2vw);
      width: calc(34% - 1vw);

      .lefttask-text {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgb(36 229 241 / 15%);
        height: 100%;
        width: 100%;
        position: relative;

        // 左上角边框
        &::before {
          content: "";
          position: absolute;
          top: 0px;
          left: 0px;
          width: 6px;
          height: 6px;
          border-top: 1px solid #24e5f1;
          border-left: 1px solid #24e5f1;
          opacity: 0.4;
        }

        // 右上角边框
        &::after {
          content: "";
          position: absolute;
          top: 0px;
          right: 0px;
          width: 6px;
          height: 6px;
          border-top: 1px solid #24e5f1;
          border-right: 1px solid #24e5f1;
          opacity: 0.4;
        }

        // 左下角边框
        .corner-lb {
          content: "";
          position: absolute;
          bottom: 0px;
          left: 0px;
          width: 6px;
          height: 6px;
          border-bottom: 1px solid #24e5f1;
          border-left: 1px solid #24e5f1;
          opacity: 0.4;
        }

        // 右下角边框
        .corner-rb {
          content: "";
          position: absolute;
          bottom: 0px;
          right: 0px;
          width: 6px;
          height: 6px;
          border-bottom: 1px solid #24e5f1;
          border-right: 1px solid #24e5f1;
          opacity: 0.4;
        }

        .lefttask-icon {
          // width: 1.7rem;
          height: 2.8vh;
        }

        .lefttask-con {
          margin-left: 0.8vw;
          font-size: 1.3vh;
          font-weight: 400;
          color: #fff;

          .lefttask-con-tit {
            font-size: 2vh;
            font-weight: bold;
            color: #24e5f1;
            text-align: left;
          }
        }
      }
    }
  }
}
</style>
